package com.hyfd.controller.mp;

import javax.servlet.http.HttpServletRequest;

import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Controller;
import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.ResponseBody;

import com.hyfd.controller.sys.BaseController;
import com.hyfd.service.mp.BillChargeSer;
import com.hyfd.service.mp.PhoneSectionSer;

@Controller
public class BillChargeCtl extends BaseController{
	@Autowired 
	private PhoneSectionSer phoneSectionSer;
	@Autowired
	private BillChargeSer billChargeSer;
	
	/**
	 * 跳转到话费单号充值页面 使用get方式提交
	 * @param req
	 * @return
	 */
	@GetMapping("billSingleRechargePage")
	public String billSingleRechargePage() {
		return "mp/billSingleRecharge";
	}
	
	/**
	 * 跳转到话费批号充值页面 使用get方式提交
	 * @param req
	 * @return
	 */
	@GetMapping("billBatchRechargePage")
	public String billBatchRechargePage() {
		return "mp/billBatchRecharge";
	}	
	
	/**
	 * 话费充值时根据手机号查询号段、流量包
	 * */
	@GetMapping("sectionAndBillPkgGet")
	@ResponseBody
	public String sectionAndBillPkgGet(HttpServletRequest req){
		return billChargeSer.sectionAndBillPkgGet(req);
	}
}
